﻿function clustertoggle_click(ischecked)
{
    var map = $find("myMap");
    if (map!=null) {
        map.ToggleClustered(ischecked);
    }
}

//set page event handlers
Sys.Application.add_load(function() { $create(SoulSolutions.Demo.Map, { "Service": SoulSolutions.Cluster.JavaScriptControl.Services.MapService, "IsClustered": true, "ClearInfoBoxStyles": false, "Dashboard": true, "DashboardSize": "normal", "DisambiguationDialog": true, "EnableShapeDisplayThreshold": true, "FixedMap": false, "Latitude": -27.5, "Longitude": 137, "MapMode": "1", "MapStyle": "r", "MiniMap": false, "MiniMapSize": "small", "MiniMapXoffset": 90, "MiniMapYoffset": 40, "MouseWheelZoomToCenter": true, "NavigationControl3D": true, "OnLoadMap": "", "ScaleBarDistanceUnit": "k", "ShapesAccuracy": "0", "ShapesAccuracyRequestLimit": 50, "ShowMapModeSwitch": true, "TileBuffer": 0, "Traffic": false, "TrafficFlow": true, "TrafficLegend": false, "TrafficLegendText": "", "TrafficLegendX": -1, "TrafficLegendY": -1, "Zoom": 4 }, null, null, $get("myMap")); });

if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
